let sqlConnection = require("../database/SqlConnection");
let inSqlUtil = require("../util/inSqlUtil");
inSqlUtil.init(sqlConnection.sqlConnection, sqlConnection.syncSqlConnection);


let tableName = inSqlUtil.nameToUnderline("toolEduMajor");
console.log("==========");
console.log("表名");
console.log(tableName);

let fields = inSqlUtil.getFieldMap("toolEduMajor");
console.log("==========");
console.log("表中所有字段");
console.log(fields);

let field = inSqlUtil.getField("toolEduMajor","name");
console.log("==========");
console.log("查询字段在数据库中的名称");
console.log(field);

let fieldsSelected = inSqlUtil.getFieldsStr("toolEduMajor",["id","name","parentCode"]);
console.log("==========");
console.log("查询字段");
console.log(fieldsSelected);



sqlConnection.sqlConnection.end();